using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Runtime.Serialization;
using System.Collections;
using System.Data;
using System.ComponentModel;
using System.Data.OracleClient;
using WPFExcelReport.Helpers;
using WPFExcelReport.Controls;
namespace WPFExcelReport
{
    public partial class VMAVBRST
    {
        public DataRow Convert2MAVBRST(DataRow dwInput, string ITXDBVERSION, bool IsConvert = false)
        {
            DataSet SResult = new DataSet();
            SResult = QueryMAVBRST(dwInput, 0);
            DataRow dwReturn = null;
            if (SResult.Tables[0].Rows.Count > 0)
            {
                dwReturn = SResult.Tables[0].Rows[0];
            }
            else
            {
                dwReturn = SResult.Tables[0].NewRow();
            }
            switch (ITXDBVERSION)
            {
                case "YGR":
                    #region=========
         dwReturn["MVRMANDANT"] = " ".PadRight(2 ); 
         dwReturn["MVRAUFKRS"] = " ".PadRight(2 ); 
         dwReturn["MVRAUFLFD"] = " ".PadRight(6 ); 
         dwReturn["MVRAUFPOS"] = " ".PadRight(3 ); 
         dwReturn["MVRAFOLGE"] = " ".PadRight(3 ); 
         dwReturn["MVRREZNR"] = " ".PadRight(10 ); 
         dwReturn["MVRMONAT"] = " ".PadRight(6 ); 
         dwReturn["MVRVBKOSTENST"] = " ".PadRight(6 ); 
         dwReturn["MVRAUFART"] = " ".PadRight(2 ); 
         dwReturn["MVRMU"] = " ".PadRight(1 ); 
         dwReturn["MVRGKOSTENST"] = " ".PadRight(6 ); 
         dwReturn["MVRMDAT"] = " ".PadRight(0 ); 
         dwReturn["MVRPROGRP"] = " ".PadRight(3 ); 
         dwReturn["MVRARTGRP"] = " ".PadRight(3 ); 
         dwReturn["MVRKUNDNR"] = " ".PadRight(8 ); 
         dwReturn["MVRWERK"] = " ".PadRight(3 ); 
         dwReturn["MVRABT"] = " ".PadRight(3 ); 
         dwReturn["MVRWAKZ"] = " ".PadRight(1 ); 
         dwReturn["MVRART"] = " ".PadRight(20 ); 
         dwReturn["MVRDESS"] = " ".PadRight(10 ); 
         dwReturn["MVRCOLORIT"] = " ".PadRight(10 ); 
         dwReturn["MVRBESCHICH"] = " ".PadRight(10 ); 
         dwReturn["MVRFARBE"] = " ".PadRight(10 ); 
         dwReturn["MVRVAR"] = " ".PadRight(2 ); 
         dwReturn["MVRZUSTAND"] = " ".PadRight(4 ); 
         dwReturn["MVRKANR"] = " ".PadRight(8 ); 
         dwReturn["MVRKAPOS"] = " ".PadRight(4 ); 
         dwReturn["MVRREZBEZ"] = " ".PadRight(30 ); 
         dwReturn["MVRRMME"] = " ".PadRight(1 ); 
         dwReturn["MVRRMANZ"] = " ".PadRight(0 ); 
         dwReturn["MVRRMMTR"] = " ".PadRight(0 ); 
         dwReturn["MVRRMQM"] = " ".PadRight(0 ); 
         dwReturn["MVRRMKG"] = " ".PadRight(0 ); 
         dwReturn["MVRAMANZ"] = " ".PadRight(0 ); 
         dwReturn["MVRAMMTR"] = " ".PadRight(0 ); 
         dwReturn["MVRAMQM"] = " ".PadRight(0 ); 
         dwReturn["MVRAMKG"] = " ".PadRight(0 ); 
         dwReturn["MVRSAKSTKRS"] = " ".PadRight(2 ); 
         dwReturn["MVRSAKST"] = " ".PadRight(4 ); 
         dwReturn["MVRSMNRKRS"] = " ".PadRight(2 ); 
         dwReturn["MVRSMLFDNR"] = " ".PadRight(4 ); 
         dwReturn["MVRSMPOS"] = " ".PadRight(2 ); 
         dwReturn["MVRSAFL"] = " ".PadRight(0 ); 
         dwReturn["MVRSFLA"] = " ".PadRight(0 ); 
         dwReturn["MVRSVBRKL"] = " ".PadRight(0 ); 
         dwReturn["MVRSKSTKF"] = " ".PadRight(0 ); 
         dwReturn["MVRSKSTKC"] = " ".PadRight(0 ); 
         dwReturn["MVRSVBRAL"] = " ".PadRight(0 ); 
         dwReturn["MVRSVBRKG"] = " ".PadRight(0 ); 
         dwReturn["MVRSVBRQM"] = " ".PadRight(0 ); 
         dwReturn["MVRSKSTAF"] = " ".PadRight(0 ); 
         dwReturn["MVRSKSTAC"] = " ".PadRight(0 ); 
         dwReturn["MVRIAKOSTENST"] = " ".PadRight(6 ); 
         dwReturn["MVRIMASCHNR"] = " ".PadRight(8 ); 
         dwReturn["MVRIVBRLT"] = " ".PadRight(0 ); 
         dwReturn["MVRIVBRKG"] = " ".PadRight(0 ); 
         dwReturn["MVRIVBRQM"] = " ".PadRight(0 ); 
         dwReturn["MVRIKSTPF"] = " ".PadRight(0 ); 
         dwReturn["MVRIKSTPC"] = " ".PadRight(0 ); 
         dwReturn["MVRIKSTPN"] = " ".PadRight(0 ); 
         dwReturn["MVRIKSTEF"] = " ".PadRight(0 ); 
         dwReturn["MVRIKSTEC"] = " ".PadRight(0 ); 
         dwReturn["MVRIKSTEN"] = " ".PadRight(0 ); 
         dwReturn["MVRKZSOLIST"] = " ".PadRight(1 ); 
         dwReturn["MVRFILLER"] = " ".PadRight(86 ); 
                    #endregion
                    break;
                case "JLT":

                    break;
                default:

                    break;
            }
            if (IsConvert)
            {
                foreach (DataColumn cm in dwInput.Table.Columns)
                {
                    if (dwInput[cm.ColumnName].ToString() == "")
                        continue;
                    if (dwReturn.Table.Columns.Contains(cm.ColumnName))
                    {
                        dwReturn[cm.ColumnName] = dwInput[cm.ColumnName];
                    }
                }
            }
            return dwReturn;
        }
        public void MapMAVBRST(ref DataRow dwLocal, DataRow dwData)
        {
            BlindMap(ref dwLocal, dwData);
        }
        public void SaveMAVBRST(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            DataSet setResult = new DataSet();
            DataTable tbLocal = null;
            DataRow dwLocal = null;
            bool flgExist = false;
            setResult = QueryMAVBRST(dwData);
            if (setResult.Tables.Count > 0)
            {
                tbLocal = setResult.Tables[0];
                if (tbLocal.Rows.Count > 0)
                {
                    flgExist = true;
                    dwLocal = tbLocal.Rows[0];
                }
                else
                {
                    dwLocal = tbLocal.NewRow();
                }
            }
            MapMAVBRST(ref dwLocal, dwData);

            if (!flgExist)
            {

                InsertMAVBRST(dwLocal, ITXDBVERSION);
            }
            UpdateMAVBRST(dwLocal);
        }
        public void InsertMAVBRST(DataRow dwData, string ITXDBVERSION = "50.24")
        {
            OracleCommand or1;
            or1 = OracleDB.CreateCommand();
            switch (ITXDBVERSION)
            {
                case "YGR":
                    or1.CommandText = "INSERT INTO MAVBRST(VAKBMANDANT, VAKBKOLL, VAKBART, VAKBKUNDNR, VAKBFARBE, VAKBKDARTNR, VAKBKDARTBEZ, VAKBKDFARBNR, VAKBANDRUCK, VAKBMEGEW, VAKBMENGEH, VAKBGEWVON, VAKBGEWBIS, VAKBGEWCA, VAKBGEWFKT, VAKBGEWGRP, VAKBMEGFKT, VAKBMEGGRP, VAKBAENDZL, VAKBAENDBEN, VAKBAENDDAT, VAKBNEUBEN, VAKBNEUDAT, VAKBFILLER)"
                        + " VALUES (:VAKBMANDANT, :VAKBKOLL, :VAKBART, :VAKBKUNDNR, :VAKBFARBE, '                         ', '                         ', '                             ', ' ', '   ', '   ', 0, 0, ' ', '000000000000', ' ', '000000000000', ' ', 0, '        ', '000000', '        ', '      ', '                                          ')";
                    or1.Parameters.Add("VAKBMANDANT", OracleType.NVarChar).Value = dwData["VAKBMANDANT"].ToString();
                    or1.Parameters.Add("VAKBKOLL", OracleType.NVarChar).Value = dwData["VAKBKOLL"].ToString();
                    or1.Parameters.Add("VAKBART", OracleType.NVarChar).Value = dwData["VAKBART"].ToString();
                    or1.Parameters.Add("VAKBFARBE", OracleType.NVarChar).Value = dwData["VAKBFARBE"].ToString();
                    or1.Parameters.Add("VAKBKUNDNR", OracleType.NVarChar).Value = dwData["VAKBKUNDNR"].ToString();
                    break;
                //VAFMANDANT VAFKOLL VAFART VAFFARBE VAFBEZ VAFFFARBE

            }
            
            Connect2Proxy(or1);
        }
        public DataSet QueryMAVBRST(DataRow dwData, int option = 1)
        {
            DataSet Return;
            DataSet Result = new DataSet();
            OracleCommand or1 = OracleDB.CreateCommand();
            switch (option)
            {
                case 0:
                    or1.CommandText = "SELECT * FROM MAVBRST WHERE  ROWNUM<2 ";
                    break;
              
                case 99:
                    or1.CommandText = "SELECT * FROM MAVBRST  WHERE ROWNUM<50";
                    break;
                default:
                    break;
            }
            Result = Connect2Proxy(or1);
            if (Result.Tables.Count > 0)
                Result.Tables[0].TableName = "MAVBRST";
            Return = Result;
            return Return;
        }
        public void DeleteMAVBRST(DataRow dwData, int option = 1)
        {

            OracleCommand or1 = OracleDB.CreateCommand();
            switch (option)
            {
                case 1:
                    or1.CommandText = "DELETE FROM MAVBRST   WHERE  VAKBMANDANT=:VAKBMANDANT AND VAKBKOLL=:VAKBKOLL AND VAKBART =:VAKBART AND VAKBFARBE=:VAKBFARBE AND VAKBKUNDNR=:VAKBKUNDNR";
                     or1.Parameters.Add("VAKBMANDANT", OracleType.NVarChar).Value = dwData["VAKBMANDANT"].ToString();
                    or1.Parameters.Add("VAKBKOLL", OracleType.NVarChar).Value = dwData["VAKBKOLL"].ToString();
                    or1.Parameters.Add("VAKBART", OracleType.NVarChar).Value = dwData["VAKBART"].ToString();
                    or1.Parameters.Add("VAKBFARBE", OracleType.NVarChar).Value = dwData["VAKBFARBE"].ToString();
                    or1.Parameters.Add("VAKBKUNDNR", OracleType.NVarChar).Value = dwData["VAKBKUNDNR"].ToString();
                    break;
                default:
                    break;
            }
            Connect2Proxy(or1);
        } 
      
        public void UpdateMAVBRST(DataRow dwData, string ITXDBVERSION = "50.24", int option = 1)
        {
            OracleCommand or1;
            DataSet Result = new DataSet();
            or1 = OracleDB.CreateCommand();
            switch (option)
            {
                case 1:
                    #region====Command==== 
                    or1.CommandText = "UPDATE MAVBRST SET "
                    +"MVRMANDANT= :MVRMANDANT,"
                    +"MVRAUFKRS= :MVRAUFKRS,"
                    +"MVRAUFLFD= :MVRAUFLFD,"
                    +"MVRAUFPOS= :MVRAUFPOS,"
                    +"MVRAFOLGE= :MVRAFOLGE,"
                    +"MVRREZNR= :MVRREZNR,"
                    +"MVRMONAT= :MVRMONAT,"
                    +"MVRVBKOSTENST= :MVRVBKOSTENST,"
                    +"MVRAUFART= :MVRAUFART,"
                    +"MVRMU= :MVRMU,"
                    +"MVRGKOSTENST= :MVRGKOSTENST,"
                    +"MVRMDAT= :MVRMDAT,"
                    +"MVRPROGRP= :MVRPROGRP,"
                    +"MVRARTGRP= :MVRARTGRP,"
                    +"MVRKUNDNR= :MVRKUNDNR,"
                    +"MVRWERK= :MVRWERK,"
                    +"MVRABT= :MVRABT,"
                    +"MVRWAKZ= :MVRWAKZ,"
                    +"MVRART= :MVRART,"
                    +"MVRDESS= :MVRDESS,"
                    +"MVRCOLORIT= :MVRCOLORIT,"
                    +"MVRBESCHICH= :MVRBESCHICH,"
                    +"MVRFARBE= :MVRFARBE,"
                    +"MVRVAR= :MVRVAR,"
                    +"MVRZUSTAND= :MVRZUSTAND,"
                    +"MVRKANR= :MVRKANR,"
                    +"MVRKAPOS= :MVRKAPOS,"
                    +"MVRREZBEZ= :MVRREZBEZ,"
                    +"MVRRMME= :MVRRMME,"
                    +"MVRRMANZ= :MVRRMANZ,"
                    +"MVRRMMTR= :MVRRMMTR,"
                    +"MVRRMQM= :MVRRMQM,"
                    +"MVRRMKG= :MVRRMKG,"
                    +"MVRAMANZ= :MVRAMANZ,"
                    +"MVRAMMTR= :MVRAMMTR,"
                    +"MVRAMQM= :MVRAMQM,"
                    +"MVRAMKG= :MVRAMKG,"
                    +"MVRSAKSTKRS= :MVRSAKSTKRS,"
                    +"MVRSAKST= :MVRSAKST,"
                    +"MVRSMNRKRS= :MVRSMNRKRS,"
                    +"MVRSMLFDNR= :MVRSMLFDNR,"
                    +"MVRSMPOS= :MVRSMPOS,"
                    +"MVRSAFL= :MVRSAFL,"
                    +"MVRSFLA= :MVRSFLA,"
                    +"MVRSVBRKL= :MVRSVBRKL,"
                    +"MVRSKSTKF= :MVRSKSTKF,"
                    +"MVRSKSTKC= :MVRSKSTKC,"
                    +"MVRSVBRAL= :MVRSVBRAL,"
                    +"MVRSVBRKG= :MVRSVBRKG,"
                    +"MVRSVBRQM= :MVRSVBRQM,"
                    +"MVRSKSTAF= :MVRSKSTAF,"
                    +"MVRSKSTAC= :MVRSKSTAC,"
                    +"MVRIAKOSTENST= :MVRIAKOSTENST,"
                    +"MVRIMASCHNR= :MVRIMASCHNR,"
                    +"MVRIVBRLT= :MVRIVBRLT,"
                    +"MVRIVBRKG= :MVRIVBRKG,"
                    +"MVRIVBRQM= :MVRIVBRQM,"
                    +"MVRIKSTPF= :MVRIKSTPF,"
                    +"MVRIKSTPC= :MVRIKSTPC,"
                    +"MVRIKSTPN= :MVRIKSTPN,"
                    +"MVRIKSTEF= :MVRIKSTEF,"
                    +"MVRIKSTEC= :MVRIKSTEC,"
                    +"MVRIKSTEN= :MVRIKSTEN,"
                    +"MVRKZSOLIST= :MVRKZSOLIST,"
                    +"MVRFILLER= :MVRFILLER,"
                        + " WHERE  "
                        + "  VAKBMANDANT=:VAKBMANDANT AND VAKBKOLL=:VAKBKOLL AND VAKBART =:VAKBART AND VAKBFARBE=:VAKBFARBE AND VAKBKUNDNR=:VAKBKUNDNR";
                    #endregion

                    #region====Parameters====
          or1.Parameters.Add("MVRMANDANT", OracleType.NVarChar).Value = dwData["MVRMANDANT"].ToString(); 
          or1.Parameters.Add("MVRAUFKRS", OracleType.NVarChar).Value = dwData["MVRAUFKRS"].ToString(); 
          or1.Parameters.Add("MVRAUFLFD", OracleType.NVarChar).Value = dwData["MVRAUFLFD"].ToString(); 
          or1.Parameters.Add("MVRAUFPOS", OracleType.NVarChar).Value = dwData["MVRAUFPOS"].ToString(); 
          or1.Parameters.Add("MVRAFOLGE", OracleType.NVarChar).Value = dwData["MVRAFOLGE"].ToString(); 
          or1.Parameters.Add("MVRREZNR", OracleType.NVarChar).Value = dwData["MVRREZNR"].ToString(); 
          or1.Parameters.Add("MVRMONAT", OracleType.NVarChar).Value = dwData["MVRMONAT"].ToString(); 
          or1.Parameters.Add("MVRVBKOSTENST", OracleType.NVarChar).Value = dwData["MVRVBKOSTENST"].ToString(); 
          or1.Parameters.Add("MVRAUFART", OracleType.NVarChar).Value = dwData["MVRAUFART"].ToString(); 
          or1.Parameters.Add("MVRMU", OracleType.NVarChar).Value = dwData["MVRMU"].ToString(); 
          or1.Parameters.Add("MVRGKOSTENST", OracleType.NVarChar).Value = dwData["MVRGKOSTENST"].ToString(); 
          or1.Parameters.Add("MVRMDAT", OracleType.NVarChar).Value = dwData["MVRMDAT"].ToString(); 
          or1.Parameters.Add("MVRPROGRP", OracleType.NVarChar).Value = dwData["MVRPROGRP"].ToString(); 
          or1.Parameters.Add("MVRARTGRP", OracleType.NVarChar).Value = dwData["MVRARTGRP"].ToString(); 
          or1.Parameters.Add("MVRKUNDNR", OracleType.NVarChar).Value = dwData["MVRKUNDNR"].ToString(); 
          or1.Parameters.Add("MVRWERK", OracleType.NVarChar).Value = dwData["MVRWERK"].ToString(); 
          or1.Parameters.Add("MVRABT", OracleType.NVarChar).Value = dwData["MVRABT"].ToString(); 
          or1.Parameters.Add("MVRWAKZ", OracleType.NVarChar).Value = dwData["MVRWAKZ"].ToString(); 
          or1.Parameters.Add("MVRART", OracleType.NVarChar).Value = dwData["MVRART"].ToString(); 
          or1.Parameters.Add("MVRDESS", OracleType.NVarChar).Value = dwData["MVRDESS"].ToString(); 
          or1.Parameters.Add("MVRCOLORIT", OracleType.NVarChar).Value = dwData["MVRCOLORIT"].ToString(); 
          or1.Parameters.Add("MVRBESCHICH", OracleType.NVarChar).Value = dwData["MVRBESCHICH"].ToString(); 
          or1.Parameters.Add("MVRFARBE", OracleType.NVarChar).Value = dwData["MVRFARBE"].ToString(); 
          or1.Parameters.Add("MVRVAR", OracleType.NVarChar).Value = dwData["MVRVAR"].ToString(); 
          or1.Parameters.Add("MVRZUSTAND", OracleType.NVarChar).Value = dwData["MVRZUSTAND"].ToString(); 
          or1.Parameters.Add("MVRKANR", OracleType.NVarChar).Value = dwData["MVRKANR"].ToString(); 
          or1.Parameters.Add("MVRKAPOS", OracleType.NVarChar).Value = dwData["MVRKAPOS"].ToString(); 
          or1.Parameters.Add("MVRREZBEZ", OracleType.NVarChar).Value = dwData["MVRREZBEZ"].ToString(); 
          or1.Parameters.Add("MVRRMME", OracleType.NVarChar).Value = dwData["MVRRMME"].ToString(); 
          or1.Parameters.Add("MVRRMANZ", OracleType.NVarChar).Value = dwData["MVRRMANZ"].ToString(); 
          or1.Parameters.Add("MVRRMMTR", OracleType.NVarChar).Value = dwData["MVRRMMTR"].ToString(); 
          or1.Parameters.Add("MVRRMQM", OracleType.NVarChar).Value = dwData["MVRRMQM"].ToString(); 
          or1.Parameters.Add("MVRRMKG", OracleType.NVarChar).Value = dwData["MVRRMKG"].ToString(); 
          or1.Parameters.Add("MVRAMANZ", OracleType.NVarChar).Value = dwData["MVRAMANZ"].ToString(); 
          or1.Parameters.Add("MVRAMMTR", OracleType.NVarChar).Value = dwData["MVRAMMTR"].ToString(); 
          or1.Parameters.Add("MVRAMQM", OracleType.NVarChar).Value = dwData["MVRAMQM"].ToString(); 
          or1.Parameters.Add("MVRAMKG", OracleType.NVarChar).Value = dwData["MVRAMKG"].ToString(); 
          or1.Parameters.Add("MVRSAKSTKRS", OracleType.NVarChar).Value = dwData["MVRSAKSTKRS"].ToString(); 
          or1.Parameters.Add("MVRSAKST", OracleType.NVarChar).Value = dwData["MVRSAKST"].ToString(); 
          or1.Parameters.Add("MVRSMNRKRS", OracleType.NVarChar).Value = dwData["MVRSMNRKRS"].ToString(); 
          or1.Parameters.Add("MVRSMLFDNR", OracleType.NVarChar).Value = dwData["MVRSMLFDNR"].ToString(); 
          or1.Parameters.Add("MVRSMPOS", OracleType.NVarChar).Value = dwData["MVRSMPOS"].ToString(); 
          or1.Parameters.Add("MVRSAFL", OracleType.NVarChar).Value = dwData["MVRSAFL"].ToString(); 
          or1.Parameters.Add("MVRSFLA", OracleType.NVarChar).Value = dwData["MVRSFLA"].ToString(); 
          or1.Parameters.Add("MVRSVBRKL", OracleType.NVarChar).Value = dwData["MVRSVBRKL"].ToString(); 
          or1.Parameters.Add("MVRSKSTKF", OracleType.NVarChar).Value = dwData["MVRSKSTKF"].ToString(); 
          or1.Parameters.Add("MVRSKSTKC", OracleType.NVarChar).Value = dwData["MVRSKSTKC"].ToString(); 
          or1.Parameters.Add("MVRSVBRAL", OracleType.NVarChar).Value = dwData["MVRSVBRAL"].ToString(); 
          or1.Parameters.Add("MVRSVBRKG", OracleType.NVarChar).Value = dwData["MVRSVBRKG"].ToString(); 
          or1.Parameters.Add("MVRSVBRQM", OracleType.NVarChar).Value = dwData["MVRSVBRQM"].ToString(); 
          or1.Parameters.Add("MVRSKSTAF", OracleType.NVarChar).Value = dwData["MVRSKSTAF"].ToString(); 
          or1.Parameters.Add("MVRSKSTAC", OracleType.NVarChar).Value = dwData["MVRSKSTAC"].ToString(); 
          or1.Parameters.Add("MVRIAKOSTENST", OracleType.NVarChar).Value = dwData["MVRIAKOSTENST"].ToString(); 
          or1.Parameters.Add("MVRIMASCHNR", OracleType.NVarChar).Value = dwData["MVRIMASCHNR"].ToString(); 
          or1.Parameters.Add("MVRIVBRLT", OracleType.NVarChar).Value = dwData["MVRIVBRLT"].ToString(); 
          or1.Parameters.Add("MVRIVBRKG", OracleType.NVarChar).Value = dwData["MVRIVBRKG"].ToString(); 
          or1.Parameters.Add("MVRIVBRQM", OracleType.NVarChar).Value = dwData["MVRIVBRQM"].ToString(); 
          or1.Parameters.Add("MVRIKSTPF", OracleType.NVarChar).Value = dwData["MVRIKSTPF"].ToString(); 
          or1.Parameters.Add("MVRIKSTPC", OracleType.NVarChar).Value = dwData["MVRIKSTPC"].ToString(); 
          or1.Parameters.Add("MVRIKSTPN", OracleType.NVarChar).Value = dwData["MVRIKSTPN"].ToString(); 
          or1.Parameters.Add("MVRIKSTEF", OracleType.NVarChar).Value = dwData["MVRIKSTEF"].ToString(); 
          or1.Parameters.Add("MVRIKSTEC", OracleType.NVarChar).Value = dwData["MVRIKSTEC"].ToString(); 
          or1.Parameters.Add("MVRIKSTEN", OracleType.NVarChar).Value = dwData["MVRIKSTEN"].ToString(); 
          or1.Parameters.Add("MVRKZSOLIST", OracleType.NVarChar).Value = dwData["MVRKZSOLIST"].ToString(); 
          or1.Parameters.Add("MVRFILLER", OracleType.NVarChar).Value = dwData["MVRFILLER"].ToString(); 
                    #endregion
                    break; 
                default:
                    break;
            }


            Connect2Proxy(or1);
        }
    }
}
